<!--
 * @Description:
 * @Author: wyh19
 * @Date: 2021-05-21
-->
<template>
  <el-form ref="form" :model="formData" :disabled="formDisabled" :rules="rules" label-width="80px"
           size="small" @validate="handleValidate">
    <el-form-item label="公司" prop="company" class="field-wrapper">
      <el-input v-model="formData.company" v-compare:company="oldFormData" />
    </el-form-item>
  </el-form>
</template>

<script>
import SuperFormMixin from '@/mixins/super-form-mixin'
export default {
  name: 'Form2',
  mixins: [SuperFormMixin],
  data() {
    return {
      rules: {
        company: [
          { required: true, message: '请输入公司', trigger: 'blur' }
        ]
      }
    }
  },
  watch: {
    'linkChannel.education': {
      handler(v) {
        console.log(v)
      }
    }
  }
}
</script>

<style scoped lang="scss">
.field-wrapper {
  width: 320px;
}
</style>
